package com.amado.course45mysql03.dao;

import java.util.List;

import com.amado.course45mysql03.domain.Role;
import com.amado.course45mysql03.vo.Page;

public interface RoleDao {
	boolean add(Role t);

	boolean upadte(Role t);

	boolean isExists(String roleCode);

	boolean delete(String roleCode);

	Role getByCode(String roleCode);

	List<Role> listAll();
	List<Role> listAll(Page<Role> page);

	int getCount();
}
